<?php

session_start();

if(!isset($_SESSION['TenDN']))

	header("location:Login.php");



	include("../../include/configuration.php");

	include("../../include/database.php");

	include_once("../../include/define.php");

	$obj_config = new Config();

?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="images/favicon.ico">

<link href="../../css/mystyle.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="../../css/ddsmoothmenu.css" media="screen"/>
<link rel="stylesheet" href="../../scripts/nivo-slider/themes/default/default.css" type="text/css" media="screen" />
<link rel="stylesheet" href="../../scripts/nivo-slider/nivo-slider.css" type="text/css" media="screen" />
<link type="text/css" href="../../css/jquery.ui.tabs.css" rel="stylesheet" />
<link type="text/css" href="../../css/sliding-tab.css" rel="stylesheet" />
<link type="text/css" href="../../css/phantrang.css" rel="stylesheet" />
<link type="text/css" href="../../css/button.css" rel="stylesheet" />


<title>CTY TNHH Toàn Tâm</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script type="text/javascript" src="scripts/ddsmoothmenu.js"></script>
 <script src="../../scripts/fancybox/jquery.fancybox-1.3.4.js" type="text/javascript" charset="utf-8"></script>
<script src="../../scripts/fancybox/jquery.easing-1.3.pack.js" type="text/javascript" charset="utf-8"></script>
<script src="../../scripts/fancybox/jquery.mousewheel-3.0.4.pack.js" type="text/javascript" charset="utf-8"></script>
<script src="../../scripts/nivo-slider/jquery.nivo.slider.js" type="text/javascript" charset="utf-8"></script>
<script src="../../scripts/nivo-slider/jquery.nivo.slider.pack.js" type="text/javascript" charset="utf-8"></script>
<script src="../../scripts/jquery.jcarousel.min.js" type="text/javascript" charset="utf-8"></script>
<script src="../../scripts/jcarousellite_1.0.1c4.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="../../scripts/jquery-ui-1.8.23.custom.min.js"></script>
<script type="text/javascript" src="../../scripts/sliding-tab.js"></script>

<script type="text/javascript">
function goBack()
  {
  window.history.back()
  }
jQuery(document).ready(function(){
	do_profile_service(GI.profile2);
	do_profile(GI.profile1);
	
	ddsmoothmenu.init({
	mainmenuid: "smoothmenu1", //menu DIV id
	orientation: 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname: 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	});

	ddsmoothmenu.init({
		mainmenuid: "smoothmenu2", //Menu DIV id
		orientation: 'v', //Horizontal or vertical menu: Set to "h" or "v"
		classname: 'ddsmoothmenu-v', //class added to menu's outer DIV
		//customtheme: ["#804000", "#482400"],
		contentsource: "markup" //"markup" or ["container_id", "path_to_menu_file"]
	});
});
</script>
<script type="text/javascript">
$(window).load(function() {
	$('#tabs_sp').tabs();
	$('#slider').nivoSlider();

});

GI = {};
GI.profile1 = {
	'showItems':5,
	'effect':'slide',
	/*'next':'<div style="margin-top:20px; vertical-align:middle"><input type="image" src="images/next.gif" title="Xem tiếp" style="vertical-align:middle"/></div>',
	'previous':'<div style="height:40px; margin-top:20px;vertical-align:middle"><input type="image" src="images/previous.gif" title="Xem lại" /></div>',*/
	'speed':500,
	//'bgrSlide': 'url(img/bgr_bottom_banner.png) no-repeat bottom center',
	'numberItem': 5,
	'slide': 'circular',
	'timeAutoSlideImg': 10,
	//                  Style ul li slide banner
	//'bgr_banner_li': 'url(img/bgr_img_banner.png) no-repeat bottom center',
	'padding_banner_li': '0px 0px 0px 0px',
	'width_li': '180px',
	'margin_banner_li': '0px 0px 0px 0px'
}

GI.profile2 = {
	'showItems':1,
	'effect':'slide',
	'next':'<div style="margin-top:20px; vertical-align:middle"><input type="image" src="images/next.gif" title="Xem tiếp" style="vertical-align:middle"/></div>',
	'previous':'<div style="height:40px; margin-top:20px;vertical-align:middle; margin-left:10px"><input type="image" src="images/previous.gif" title="Xem lại" /></div>',
	'speed':10000,
	//'bgrSlide': 'url(img/bgr_bottom_banner.png) no-repeat bottom center',
	'numberItem': 1,
	'slide': 'circular',
	'timeAutoSlideImg': 10,
	//                  Style ul li slide banner
	//'bgr_banner_li': 'url(img/bgr_img_banner.png) no-repeat bottom center',
	'padding_banner_li': '0px 10px 0px 0px',
	'width_li': 'auto',
	'margin_banner_li': '0px 5px 0px 5px'
}

function do_profile(p) {

	$("div.slideshow").jcarousel({
		scroll:p.showItems,
		effect: p.effect,
		/*buttonNextHTML:p.next,
		buttonPrevHTML:p.previous,*/
		animSpeed: p.speed,
		visible: p.numberItem,
		wrap: p.slide,
		auto: p.timeAutoSlideImg
	});
	$("div.slideshow ul li").css({
		width: p.width_li,
		padding: p.padding_banner_li,
		margin: p.margin_banner_li
	});
}

function do_profile_service(p) {
	$("div.slideshow_service").jcarousel({
		scroll:p.showItems,
		effect: p.effect,
		buttonNextHTML:p.next,
		buttonPrevHTML:p.previous,
		animSpeed: p.speed,
		visible: p.numberItem,
		wrap: p.slide,
		auto: p.timeAutoSlideImg
	});
	$("div.slideshow_service ul li").css({
		/*width: p.width_li,*/
		padding: p.padding_banner_li,
		margin: p.margin_banner_li
	});
}
</script>

</head>


<body>

<!--HEADER - START-->
<?php include_once("khoitao.php");?>
<div id="header">

    	<?php include_once("header.php");?>
    </div>
<div id="menu_top">
        <?php include_once("menu_top.php");?>
    </div>

<!--HEADER - END-->



<!--CONTENT - START-->

<div id="content">

	<div id="content_right">
    	<?php include_once("menu_left.php");?>
    </div>
    
    <div id="content_left">
    	<?php
                            if(!isset($_REQUEST["key"]))
                                include_once("trangchu1.php");
                            else
                            {
                                $key = $_REQUEST["key"];                     
                                if( $key == NULL)
                                    $key = "tc";	
                                else if($key == "tc")
                                    include_once("ql_home.php");
								else if($key == "nd")
                                    include_once("ql_noi_dung.php");	
								else if($key == "upd")
                                    include_once("sua_noi_dung.php");
								else if($key == "act_upd")
                                    include_once("sua_noi_dung_action.php");
								else if($key == "qldv")
                                    include_once("ql_dich_vu.php");	
								else if($key == "t_qldv")
                                    include_once("them_dich_vu.php");
								else if($key == "qlbn")
                                    include_once("ql_banner.php");	
								else if($key == "user")
                                    include_once("ql_user.php");
								else if($key=="upd_user")
                                    include_once("sua_nguoi_dung.php");
								else if($key == "ga")
                                    include_once("ql_galary.php");		
								else if($key=="qltt")
                                    include_once("ql_tin_tuc.php");	
								else if($key=="t_qltt")
                                    include_once("them_tin_tuc.php");
								else if($key=="alb")
                                    include_once("ql_album.php");
								else if($key=="qllk")
                                    include_once("ql_lien_ket.php");	
								else if($key=="slk")
                                    include_once("sua_lien_ket.php");	
								else if($key=="sbn")
                                    include_once("sua_banner.php");		
								else if($key=="qldc")
                                    include_once("ql_dia_chi.php");
								else if($key=="sdc")
                                    include_once("sua_dia_chi.php");
								else if($key=="qltvo")
                                    include_once("ql_nick_yahoo.php");	
								else if($key=="qlhl" || $key=="qltd" || $key=="qltag")
                                    include_once("ql_hotline_thongdiep_tags.php");
									//Phuong - MOD - START - 02/03/2012
								else if($key=="qlkt")
                                    include_once("ql_kien_thuc.php");
								else if($key=="t_qlkt")
                                    include_once("them_kien_thuc.php");	
								else if($key=="qldm")
                                    include_once("ql_danhmuc.php");
								else if($key=="qlnb")
                                    include_once("ql_dv_noi_bat.php");
								else if($key=="t_qlnb")
                                    include_once("them_dv_noi_bat.php");
								else if($key=="qlsp")
                                    include_once("ql_san_pham.php");
								else if($key=="t_qlsp")
                                    include_once("them_san_pham.php");
								else if($key=="upd_sp")
                                    include_once("sua_san_pham.php");
                                else
                                    include_once("trangchu1.php");

                            }

                                

                        ?>  
    </div>
	<br style="clear: left" />
	



</div>

<!--CONTENT - END-->



<!--FOOTER - START-->

<div id="footer">

	<?php include_once("footer.php")?>

</div>

<!--FOOTER - END-->



</body>

</html>

